package com.situ.spring.service.impl;

import com.situ.spring.dao.ICourseDao;
import com.situ.spring.service.ICourseService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

//<bean name="studentService" class="com.situ.spring.service.impl.StudentServiceImpl">
//    <property name="studentDao" ref="studentDao"/>
//</bean>
@Service("courseService")
public class CourseServiceImpl implements ICourseService {
    @Resource(name = "courseDao")
    private ICourseDao courseDao;

    @Override
    public void selectAll() {
        long beginTime = System.currentTimeMillis();

        System.out.println("CourseServiceImpl.selectAll");
        //courseDao.selectAll();

        long endTime = System.currentTimeMillis();
        long takeTime = endTime - beginTime;
    }

    @Override
    public void selectById() {
        System.out.println("CourseServiceImpl.selectById");
    }
}
